import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import { router } from "./router"
import { Message } from "./utils/Message"
import ElementPlus from "element-plus"
import 'normalize.css'
import 'element-plus/dist/index.css'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import "@/assets/iconfont/iconfont.css"

// 自定义全局组件
import components from "./components"

const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)

Message.init(window)
const app = createApp(App)

app.use(pinia)
  .use(router)
  .use(ElementPlus)
  .use(components)
app.mount('#app')


Message.finish('');